<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>首页</title>
    <link href="/home/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <script src="/home/js/jquery.min.js"></script>
    <script src="/home/js/amazeui.min.js"></script>
    <script src="/home/layer/2.4/layer.js"></script>
    {block name="css" }
    <link href="/home/css/admin.css" rel="stylesheet" type="text/css"/>
    {/block}
</head>
<body>

{include file="common/top" /}
{block name="content" }{/block}

<!---foot---->

{include file="common/footer" /}
{block name="js" }{/block}
<!--foot-->
<!--退出-->
<script>
    $('.logout').click(function(){
        var url = $(this).attr('link');
        layer.confirm('你确定要此操作吗?', {
            icon: 5,
            btn: ['确定','取消'] //按钮
        }, function(){
            $.get(url,function(data){
                if (data.code == 0) {
                    layer.alert(data.msg, {icon: 6},function (index) {
                        layer.close(index);
                        window.location.reload();
                    });
                }else{
                    layer.alert(data.msg);
                }
            });
        });
    });
</script>
</body>
</html>